﻿using Rhino;
using Rhino.Commands;
using System;
using YangTools.Realization;

namespace YangTools
{
    /// <summary>
    /// 将图块设置为唯一
    /// </summary>
    public class BlockUniqueCommand : Command
    {
        static BlockUniqueCommand _instance;
        public BlockUniqueCommand()
        {
            _instance = this;
        }

        public static BlockUniqueCommand Instance
        {
            get { return _instance; }
        }

        public override string EnglishName
        {
            get { return "BlockUnique"; }
        }

        protected override Result RunCommand(RhinoDoc doc, RunMode mode)
        {
            BlockEdit blockUnique = new BlockEdit();
            blockUnique.MakeUnique();
            return Result.Success;
        }
    }
}